import asyncio
import websockets


async def main():
    async with websockets.connect("ws://localhost:8899") as websocket:
        while True:
            message = input("Enter a message: ")
            await websocket.send(message)
            response = await websocket.recv()
            print("Received:", response)


asyncio.run(main())
